#ifndef _TRANSLATION
#define _TRANSLATION

#include "base.h"
#include "vector.h"
#include "sphere.h"

typedef struct
{
  union
  {
    struct
    {
      vector p;             // position
      vector r;             // rotation
      vector s;             // scale
    }
    struct { vector t[3]; } // [position, rotation, scale]
  }
  bool   visible;           // visible in rendering?
  sphere boundingSphere;    // bounding informations
} tNode;

void translationClear(tNode *t);
void translationCopy (tNode *dst, tNode *src);

#endif // _TRANSLATION
